home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
SWAG
/
SWAGA_C
/
COMM.SWG
/
0074_Carrier Detect.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-02-28
|
364b
|
20 lines
unit carrier;
{ detects carrier on modem line }
interface
uses dos;
implementation
Function carrierDetected( ComPort : byte ) : Boolean;
const
MSR = 6;
BASEPORT : Array[1..4] Of Word = ($03F8, $02F8, $03E8, $02E8);
begin
CarrierDetected := (Port[basePort[ComPort] + MSR] And 128) <> 128;
{true = no carrier}
end;
end.